<template>
  <div class="ammbB8tpRTlzwGu9Q8GNE _3PpmFreY8xlC6Z2Y0lcyk-">
    <div class="_1hh60i8CByuosza1JbgE0Q">
      <span>{{ DetailPList.title }}</span>
    </div>
    <div class="ant-spin-nested-loading">
      <div class="ant-spin-container">
        <ul class="_1PytTgSelvgOTMZR4ckInB">
          <li
            v-for="item in DetailPList.children"
            :key="item.id"
            @click="toKid(item.id)"
          >
            <a>
              <span>{{ item.title }}</span>
            </a>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
import { mapState} from "vuex";
export default {
  computed: {
    ...mapState({
      DetailPList: (state) => state.knowledge.DetailPList,
    }),
  },
  mounted() {
    console.log(this.DetailPList.id);
  },
  methods: {
    toKid(id) {
      this.$router.push(`/konwledge/${this.DetailPList.id}/${id}`);
    },
  },
};
</script>

<style scoped>
.ammbB8tpRTlzwGu9Q8GNE {
  margin-bottom: 1.3rem;
  line-height: 1.29;
  border-radius: var(--border-radius);
  background-color: var(--bg-second);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  padding: 0.8rem;
}
.ammbB8tpRTlzwGu9Q8GNE ._1hh60i8CByuosza1JbgE0Q {
  width: 256px;
  color: var(--main-text-color);
  font-weight: 700;
  font-size: 16px;
}
.ammbB8tpRTlzwGu9Q8GNE ul._1PytTgSelvgOTMZR4ckInB li {
  display: flex;
  flex-wrap: nowrap;
  cursor: pointer;
  align-items: stretch;
  padding-top: 14px;
  color: var(--second-text-color);
}
.ammbB8tpRTlzwGu9Q8GNE ul._1PytTgSelvgOTMZR4ckInB li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 32px;
  font-size: 14px;
  line-height: 20px;
  padding-left: 12px;
  padding-right: 16px;
  padding-right: 16px;
}
.ammbB8tpRTlzwGu9Q8GNE ul._1PytTgSelvgOTMZR4ckInB li a:hover {
  color: #ff0064;
  background-color: #eee;
}
</style>